![]() |
Web Services for Remote Management
14.0
Reference documentation for web service interfaces to support remote management of Symantec Endpoint Protection
|
Contains static methods for converting various exceptions to web service layer exceptions that can be sent back to a web service client. More...
Static Public Member Functions | |
| static void | translateAndThrowException (Throwable t) throws InvalidArgumentServiceException, InsufficientAccessServiceException, ServiceException |
| This method takes any Throwable exception and converts it to a web service declared public exception type. More... | |
| static void | translateAndThrowExceptionForNonArgumentMethod (Throwable t) throws InsufficientAccessServiceException, ServiceException |
| This method takes any Throwable exception and converts it to a web service declared public exception type. More... | |
Contains static methods for converting various exceptions to web service layer exceptions that can be sent back to a web service client.
|
static |
This method takes any Throwable exception and converts it to a web service declared public exception type.
This method always throws an exception. If the specific exception type is a runtime exception or cannot be determined, a ServiceException is thrown.
| t | the original throwable exception |
| InvalidArgumentServiceException | if the input is an instance of InvalidArgumentServiceException or InvalidArgumentException |
| InsufficientAccessServiceException | if the input is an instance of InsufficientAccessServiceException |
| ServiceException | if the input is an instance of ServiceException, or any other type of exception |
|
static |
This method takes any Throwable exception and converts it to a web service declared public exception type.
Unlike translateAndThrowException, this method should not handle InvalidArgumentServiceException or InvalidArgumentException, because it is designed for use with methods that do not have arguments. If either InvalidArgumentServiceException or InvalidArgumentException is passed, a ServiceException is thrown.
This method will always throw an exception. If the specific exception type is a runtime exception, InvalidArgumentServiceException or InvalidArgumentException, or cannot be determined, a ServiceException is thrown.
| t | the original throwable exception |
| InsufficientAccessServiceException | if the input is an instance of InsufficientAccessServiceException |
| ServiceException | if the input is an instance of ServiceException, or any other type of exception |
1.8.11